#include "stdio.h"
#include "TulingUpload.h"
#include "TulingUploadImpl.h"

TulingUpload TulingUpload::mInstance ;

TulingUpload::TulingUpload()
{
	mUploadImpl = new TulingUploadImpl(); 
}

TulingUpload::~TulingUpload()
{
	if(mUploadImpl)
		delete mUploadImpl;
	mUploadImpl = NULL;
}

TulingUpload &TulingUpload::Instance()
{
    return mInstance;
}

void TulingUpload::SetEventListener(IOnEvent* _pEvent)
{
	mUploadImpl->SetEventListener(_pEvent);
}

void TulingUpload::Init()
{
	mUploadImpl->Init();
}

void TulingUpload::Start()
{
	mUploadImpl->Start();
}

void TulingUpload::on_start()
{
	mUploadImpl->on_start();
}

void TulingUpload::on_data(const void * pData,int nLen)
{
	mUploadImpl->on_data(pData,nLen);
}

void TulingUpload::on_stop()
{
	mUploadImpl->on_stop();
}

